<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta content="telephone=no" name="format-detection" />
		<title>{$data['title']} - 彩票系统</title>
		<base href="{URL}" />
		<link href="static/css/ui-dialog.css" rel="stylesheet" />
		<link href="static/css/flipclock.css" rel="stylesheet" />
		<link href="static/css/game.css" rel="stylesheet" />
		<link href="static/css/common.css" rel="stylesheet" />
		<script src="static/js/jquery.min.js"></script>
		<script src="static/js/knockout-3.4.0.js"></script>
		<script src="static/js/dialog-plus-min.js"></script>
		<script src="static/js/utils.min.js"></script>
		<script src="static/js/common.js"></script>
	</head>
	
	<body data-gamename="{$data['title']}" data-gameid="{$data['id']}">
		<input type="hidden" id="accountId" value="{$_uid}" />		

		<div class="Ccenter">
			<div class="top">
				<div class="top_in clear">
					<div class="top_menu">
						<div class="clear">
							<a href="./" class="getout" title="返回首页"><span class="return_index">返回大厅</span></a>
							<a href="https://v88.live800.com/live800/chatClient/chatbox.jsp?companyID=801475&configID=5925&jid=4583178362&s=1" target="_blank" class="service" title="在线客服">
								<span class="new-msg" id="NewMsg">在线客服</span>
							</a>
							<a href="javascript:;" data-bind="click:showRule" class="rule" id="Rule" title="规则说明" target="_blank"><i></i><span class="rule_description">规则说明</span></a>
							<a title="登出账号" class="btn-login-out" href="{U('member/login/logout')}"><span>登出账号</span></a>
						</div>
					</div>
					<div class="game_info game_{$data['id']}">
						<div class="game_ico game_ico_{$data['id']}"><img src="{$data['thumb']}" /></div>
						<div class="game_mane ">
							<span class="">{$data['title']}</span>
							<a href="{$data['url']}" target="_blank" title="官方网址" class="cn-btn"></a>
						</div>
						<div class="openinfo">
							<div class="drawNumber" id="PeriodInfo"><span class="c-period"><div>第 <b data-bind="text:periodInfo().fnumberofperiod">&nbsp;</b> 期</div><div data-bind="text:periodTip">&nbsp;</div></span> <span class="c-resttime" id="RestTime" style="float:left;width:128px;padding:0;"></span></div><div id="RestTime2" style="display:none"></div>
							<div class="now_time" id="Clock"></div>
						</div>
					</div>
					<div class="lottery_result lottery_result_{$data['ptid']}">
						<div data-bind="flip:prevPeriodResult" class="lr_ball_box" data-game="{$data['ptid']}"></div>
						<div>
							<span class="lr_txt">第<span class="color-NoL fsL" data-bind="text:periodInfo().fpreviousperiod">&nbsp;</span>期</span>
							<span class="lr_txt"><a target="_blank" href="{U('index/lottery/log',['id'=>$data['id']])}">开奖结果</a></span>
							<a href="javascript:;" class="volume" data-bind="click:tracks.mute,css:'volume-'+(tracks.isMute()?'off':'on')"></a>
							<div class="Ringtone select-box">
								<div class="select-current"><span data-bind="text:tracks.trackName"></span><i></i></div>
								<select class="select-list" data-bind="options:tracks.list,value:tracks.track,optionsText:'name',optionsValue:'value'"></select>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="container clear">
				<div class="side">
					<div class="userbox">
						<ul class="stc_1 clear">
							<li class="mane">
								<span class="stc_t">账号：</span>
								<span class="stc_c">{$_user['username']}</span>
								<a href="javascript:;" class="ui-mgs-tip-box" style="display:none;" id="show_msg">99+</a>
							</li>
							<li class="balance">
								<span class="stc_t">余额：</span><span class="stc_c stc_d" id="AvailableBalance" data-bind="click:refreshBalance" title="点击可刷新余额" style="cursor:pointer">{$_user['money']}</span>
							</li>
						</ul>
					</div>
					<div>
						<div class="acc-links clear" id="OpenNewWindow">
								<a title="在线存款" class="btn-navacc btn-navacc-deposit" href="{U('member/recharge')}" target="_blank"><span title="在线存款">充值</span></a>
								<a title="在线取款" class="btn-navacc btn-navacc-withdraw" id="jGetMoney" href="{U('member/cash')}" target="_blank"><span title="在线取款">提现</span></a>
								<a title="帐变记录" class="btn-navacc btn-navacc-mail" href="{U('member/money')}" target="_blank"><span title="帐变记录">帐变记录</span></a>
								<a title="游戏记录" class="btn-navacc btn-navacc-current" href="{U('member/order')}" target="_blank"><span>游戏记录</span></a>
								<a title="账户管理" class="btn-navacc btn-navacc-history" href="{U('member/info')}" target="_blank"><span>账户管理</span></a>
								<a title="会员中心" class="btn-navacc btn-navacc-center" href="{U('member')}" target="_blank"><span title="会员中心">会员中心</span></a>
						</div>
					</div>
					
					<div class="side-in">
						<div class="side_tab">
							<a href="{U('index/lottery/log',['id'=>$data['id']])}" target="_blank" class="result-btn"></a>
							<ul id="JSResultHistoryList" data-bind="foreach:resultHistoryList" class="{$data['ptid']}">
								<li>
									<b data-bind="text:$index()+1">&nbsp;</b>
									<span data-bind="text:period" class="olPeriod">&nbsp;</span>
									<span data-bind="attr:{title:result}" class="resultNum">
										<span><i data-bind="text:result">&nbsp;</i></span>
									</span>
									
								</li>
							</ul>
						</div>
						<div class="side_menu" id="sideMenu">
							<div class="sidem_item sidem_item_1">
								<a href="javascript:;" class="sidem_b clear"><i></i><span>时时彩</span></a>
								<ul>
									{loop $lottery as $val}
										{if !$val['credit'] && $val['tid'] == 1}
											<li{if $val['id'] == $data['id']} class="active-item-link currentClass"{/if}>
											<a data-key="{$val['id']}" data-val="{$val['title']}" href="{U('/lottery/view',['id'=>$val['id']])}"><span><i></i>{$val['title']}</span></a>
											</li>
										{/if}
									{/loop}
								</ul>
							</div>
							<div class="sidem_item sidem_item_2">
								<a href="javascript:;" class="sidem_b clear"><i></i><span>分分彩</span></a>
								<ul>
									{loop $lottery as $val}
										{if !$val['credit'] && $val['tid'] == 2}
											<li{if $val['id'] == $data['id']} class="active-item-link currentClass"{/if}>
											<a data-key="{$val['id']}" data-val="{$val['title']}" href="{U('/lottery/view',['id'=>$val['id']])}"><span><i></i>{$val['title']}</span></a>
											</li>
										{/if}
									{/loop}
								</ul>
							</div>
							<div class="sidem_item sidem_item_3">
								<a href="javascript:;" class="sidem_b clear"><i></i><span>PK拾</span></a>
								<ul>
									{loop $lottery as $val}
										{if !$val['credit'] && $val['tid'] == 3}
											<li{if $val['id'] == $data['id']} class="active-item-link currentClass"{/if}>
											<a data-key="{$val['id']}" data-val="{$val['title']}" href="{U('/lottery/view',['id'=>$val['id']])}"><span><i></i>{$val['title']}</span></a>
											</li>
										{/if}
									{/loop}
								</ul>
							</div>
							<div class="sidem_item sidem_item_4">
								<a href="javascript:;" class="sidem_b clear"><i></i><span>快乐彩</span></a>
								<ul>
									{loop $lottery as $val}
										{if !$val['credit'] && $val['tid'] == 4}
											<li{if $val['id'] == $data['id']} class="active-item-link currentClass"{/if}>
											<a data-key="{$val['id']}" data-val="{$val['title']}" href="{U('/lottery/view',['id'=>$val['id']])}"><span><i></i>{$val['title']}</span></a>
											</li>
										{/if}
									{/loop}
								</ul>
							</div>
							<div class="sidem_item sidem_item_5">
								<a href="javascript:;" class="sidem_b clear"><i></i><span>低频彩</span></a>
								<ul>
									{loop $lottery as $val}
										{if !$val['credit'] && $val['tid'] == 5}
											<li{if $val['id'] == $data['id']} class="active-item-link currentClass"{/if}>
											<a data-key="{$val['id']}" data-val="{$val['title']}" href="{U('/lottery/view',['id'=>$val['id']])}"><span><i></i>{$val['title']}</span></a>
											</li>
										{/if}
									{/loop}
								</ul>
							</div>
							<div class="sidem_item sidem_item_6">
								<a href="javascript:;" class="sidem_b clear"><i></i><span>11选5</span></a>
								<ul>
									{loop $lottery as $val}
										{if !$val['credit'] && $val['tid'] == 6}
											<li{if $val['id'] == $data['id']} class="active-item-link currentClass"{/if}>
											<a data-key="{$val['id']}" data-val="{$val['title']}" href="{U('/lottery/view',['id'=>$val['id']])}"><span><i></i>{$val['title']}</span></a>
											</li>
										{/if}
									{/loop}
								</ul>
							</div>
							<div class="sidem_item sidem_item_7">
								<a href="javascript:;" class="sidem_b clear"><i></i><span>快三</span></a>
								<ul>
									{loop $lottery as $val}
										{if !$val['credit'] && $val['tid'] == 7}
											<li{if $val['id'] == $data['id']} class="active-item-link currentClass"{/if}>
											<a data-key="{$val['id']}" data-val="{$val['title']}" href="{U('/lottery/view',['id'=>$val['id']])}"><span><i></i>{$val['title']}</span></a>
											</li>
										{/if}
									{/loop}
								</ul>
							</div>
						</div>
					</div>
				</div>
				<div class="ui-main clear">
					<div style="position:relative;height:100%;">